function print_City() {
	var city = geoip_city();
	if (city != '') {
		document.write(city);
	} else {
		document.write('Your Area');
	}
}
function print_State() {
	var state = geoip_region();
	if (state != '') {
		document.write(", " + state);
	}
}

function clear_delay(timeoutID_here) {
	window.clearTimeout(timeoutID_here);
}
/* Run 1 */
function run_loading_run_1(time_delay) {
	timeoutID1 = window.setTimeout(run_loading_1, time_delay);
}
function run_loading_1() {
	$('.thank_for_close, .run_loading_2').fadeIn();
	$('.main_review').hide();
}
/* Run 2 */
function run_loading_run_2(time_delay) {
	timeoutID2 = window.setTimeout(run_loading_2, time_delay);
}
function run_loading_2() {
	$('.thank_for_close, .run_loading_2').hide();
	$('.run_loading_3, .li_run_loading_1, .li_run_loading_2').fadeIn();
}
/* Run 3 */
function run_loading_run_3(time_delay) {
	timeoutID3 = window.setTimeout(run_loading_3, time_delay);
}
function run_loading_3() {
	$('.run_loading_3').hide();
	$('.run_loading_4, .li_run_loading_3').fadeIn();
}
/* Run 4 */
function run_loading_run_4(time_delay) {
	timeoutID3 = window.setTimeout(run_loading_4, time_delay);
}
function run_loading_4() {
	$('.run_loading_4, .loading').hide();
	$('.li_run_loading_4, li_run_loading_5, .run_loading_5, .show_end').fadeIn();
}
$(function() {
	$(document).on('click', '.next',
	function(e) {
		e.preventDefault();
		$(this).parent().hide().next().fadeIn();

	});
	$(document).on('click', '.run_loading',
	function(e) {
		e.preventDefault();
		$(this).parent().hide().next().fadeIn();
		$('.step4 .loading').show();
		run_loading_run_1('2000');
		run_loading_run_2('4500');
		run_loading_run_3('6500');
		run_loading_run_4('8900');
	});
});